Skip to content

Reduce image size by moving to scratch base#296

Merged
ai merged 8 commits intomainfrom
simplify-base-images
Mar 22, 2025
Merged

Reduce image size by moving to scratch base#296
ai merged 8 commits intomainfrom
simplify-base-images

Conversation

@ai
Copy link
Copy Markdown
Contributor

@ai ai commented Mar 18, 2025

  1. New images are smaller: 146 (ubi9-micro) → 157 (alpine) → 120 MB (scratch).
  2. It has smaller attack surface.
  3. In contrast, we UBI9 micro we are now using more mainstream distro as the base. Also, musl has smaller attack surface.
  4. We moved to .xz for faster download.

I also add image size to script and improve scripts

@ai ai force-pushed the simplify-base-images branch from cde2256 to b204c4b Compare March 18, 2025 20:44
@github-actions
Copy link
Copy Markdown
Contributor

Pull request auto-reviewer

  • Don’t rush. Check all changes in PR again.

  • Run pnpm test.

  • Think about changing documentation.

    • If you added a script to scripts/, add a comment with a description.
    • If you added a new folder, add its description to the project’s README.md.
    • If you added config, describe how we use this tool in the config’s comment.
    • Try to focus on “why?”, not “how?”.
  • Think about code testing.

  • The UI was checked in Chrome and Firefox (and Safari or Epiphany if you have them).

@ai ai force-pushed the simplify-base-images branch 2 times, most recently from 831d39c to 4c54ba9 Compare March 18, 2025 21:58
@ai ai force-pushed the simplify-base-images branch from 4c54ba9 to 0e4169e Compare March 22, 2025 17:46
@ai ai merged commit c23905f into main Mar 22, 2025
9 checks passed
@ai ai deleted the simplify-base-images branch March 22, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant